package com.ruoyi.project.bas.traycodehead.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.bas.traycodehead.mapper.BasTraycodeHeadMapper;
import com.ruoyi.project.bas.traycodehead.domain.BasTraycodeHead;
import com.ruoyi.project.bas.traycodehead.service.IBasTraycodeHeadService;
import com.ruoyi.common.core.text.Convert;

/**
 * 条码头信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-04-04
 */
@Service
public class BasTraycodeHeadServiceImpl implements IBasTraycodeHeadService 
{
    @Autowired
    private BasTraycodeHeadMapper basTraycodeHeadMapper;

    /**
     * 查询条码头信息
     * 
     * @param tHead 条码头信息主键
     * @return 条码头信息
     */
    @Override
    public BasTraycodeHead selectBasTraycodeHeadByTHead(String tHead)
    {
        return basTraycodeHeadMapper.selectBasTraycodeHeadByTHead(tHead);
    }

    /**
     * 查询条码头信息列表
     * 
     * @param basTraycodeHead 条码头信息
     * @return 条码头信息
     */
    @Override
    public List<BasTraycodeHead> selectBasTraycodeHeadList(BasTraycodeHead basTraycodeHead)
    {
        return basTraycodeHeadMapper.selectBasTraycodeHeadList(basTraycodeHead);
    }

    /**
     * 新增条码头信息
     * 
     * @param basTraycodeHead 条码头信息
     * @return 结果
     */
    @Override
    public int insertBasTraycodeHead(BasTraycodeHead basTraycodeHead)
    {
        return basTraycodeHeadMapper.insertBasTraycodeHead(basTraycodeHead);
    }

    /**
     * 修改条码头信息
     * 
     * @param basTraycodeHead 条码头信息
     * @return 结果
     */
    @Override
    public int updateBasTraycodeHead(BasTraycodeHead basTraycodeHead)
    {
        return basTraycodeHeadMapper.updateBasTraycodeHead(basTraycodeHead);
    }

    /**
     * 批量删除条码头信息
     * 
     * @param tHeads 需要删除的条码头信息主键
     * @return 结果
     */
    @Override
    public int deleteBasTraycodeHeadByTHeads(String tHeads)
    {
        return basTraycodeHeadMapper.deleteBasTraycodeHeadByTHeads(Convert.toStrArray(tHeads));
    }

    /**
     * 删除条码头信息信息
     * 
     * @param tHead 条码头信息主键
     * @return 结果
     */
    @Override
    public int deleteBasTraycodeHeadByTHead(String tHead)
    {
        return basTraycodeHeadMapper.deleteBasTraycodeHeadByTHead(tHead);
    }
}
